/**
 * Created by 小敏哥 on 2017/3/23.
 */
import apiHelper from './apiHelper';
class UpdateCarInfoService{
    //获取车辆有效期时间段
    getCheckDate(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}/inspection/checkList`,
            data: {
                method: 'get',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }

    //修改车辆信息
    updateCar(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}cars/update`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }

    //删除车辆信息
    deleteCar(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}cars/delete`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }
    //获取车辆信息
    getCarInfo(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}cars/view`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }
    /*//添加车辆
    addCar(data){
        let requestParam = {
            url: `http://192.168.4.19:3000/cars/add`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }

    //删除车辆
    subCar(data){
        let requestParam = {
            url: `http://192.168.4.19:3000/cars/sub`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }*/
}
export default new UpdateCarInfoService();